use rbatis::Rbatis;
///jdbc:mysql://localhost:3306/test?user=root&password=&useUnicode=true&characterEncoding=utf8&autoReconnect=true
///mysql://root:KhVE2blaxY@localhost:3306/prd_audit
///mysql://{username}:{password}@{host}:{port}/{database}
pub async fn init(
    username: &str,
    password: &str,
    host: &str,
    port: &u16,
    database: &str,
) -> Rbatis {
    let r = Rbatis::new();
    let driver = rbdc_mysql::driver::MysqlDriver {};
    let db_url = format!("mysql://{username}:{password}@{host}:{port}/{database}");
    r.init(driver, db_url.as_str()).unwrap();
    tracing::info!("init rbatis success {db_url}");
    r
}
